package com.woniu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.pojo.Timetable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.vo.LeagueBookVo;
import com.woniu.vo.LeagueDetailVo;
import com.woniu.vo.TimetableQueryVo;
import com.woniu.vo.TimetableSearchVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zbk
 * @since 2022-10-12
 */
public interface TimetableMapper extends BaseMapper<Timetable> {

    IPage<Map<String, Object>> selectSearch(IPage iPage, @Param("vo") TimetableQueryVo timetableQueryVo);

    List<TimetableSearchVo> selectAll(String gymId);

    LeagueDetailVo detail(String id);

    LeagueBookVo bookMsg(String id);

    BigDecimal selectCost(String timetableId);
}
